package com.student.liu.controller;

import com.student.liu.service.IGoodsTypeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("type")
public class GoodsTypeController extends BaseController {

    @Resource
    IGoodsTypeService goodsTypeService;

    @GetMapping
    public Object index() {
        return success(null, goodsTypeService.list());
    }

}